package com.lewis.web;

import java.net.InetAddress;
import java.net.UnknownHostException;

import javax.xml.ws.Endpoint;
 
public class Server {
 
    public static void main(String[] args) {
 
        Endpoint.publish("http://localhost:9898/HelloWeb", new HelloWeb());
 
        System.out.println("HelloWeb service is ready");
        
        try {
			InetAddress addr = InetAddress.getLocalHost();
			
			System.out.println("ip address is " + addr.getHostAddress());
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
 
    }
 
}